package com.corpgovernment.organization.mapper;

import com.corpgovernment.organization.common.mybatis.TkMapper;
import com.corpgovernment.organization.entity.MbOpenCardMainTable;
import com.corpgovernment.organization.entity.db.MbPostInfo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author wangyujue
 */
@Repository
public interface MbOpenCardMainTableMapper extends TkMapper<MbOpenCardMainTable> {
    @Update("update mb_open_card_main_table set success_num = success_num + 1 where id=#{batchNo}")
    int addSuccessNum(@Param("batchNo")Long  batchNo);

    @Update("update mb_open_card_main_table set apply_success_num = apply_success_num + #{applySuccessNum} where id=#{batchNo}")
    int addApplySuccessNum(@Param("batchNo")Long  batchNo, @Param("applySuccessNum")Integer  applySuccessNum);


}
